require "fileutils"

FileUtils.cp "#{File.expand_path(__FILE__)}/../lib/page_pack.yml", "#{RAILS_ROOT}/config"
FileUtils.mkdir "#{RAILS_ROOT}/public/javascripts/#{PagePack.config.javascripts_generate_path}"
FileUtils.mkdir "#{RAILS_ROOT}/public/stylesheets/#{PagePack.config.stylesheets_generate_path}"
FileUtils.chmod 0666, [
  "#{RAILS_ROOT}/public/javascripts/#{PagePack.config.javascripts_generate_path}",
  "#{RAILS_ROOT}/public/stylesheets/#{PagePack.config.stylesheets_generate_path}",
  "#{RAILS_ROOT}/config/page_pack.yml"
]